package com.demo.alias.dto;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class StudentDTO {

    //学生姓名
    @JsonProperty("studentName")
    private String name;

    //学号
    @JsonAlias({"studentId", "studentNumber"})
    private String studentNum;

}
